<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style>
.td_item {height:30px; line-height: 30px; width: 100%;   vertical-align: middle; margin:0px; padding:0px 0px 0px 0px; overflow: hidden;}
.checkboxWidth{width:200px;}
.td_item_span{display:block ;text-align: center;width: 71% !important;}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<c:set var="grant_code"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
<c:set var="sub_grant_code"><x:out select="$xmlData/data/proposal/sub_grant_code" /></c:set>
<c:set var="nature_value"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_value" /> </c:set>

<c:if test="${grant_code==635}">
	<!-- 635国家基础科学人才培养基金 -->
	<c:set var="disabledClass">class="gray" disabled</c:set>
</c:if>

<div class="t_bar">单位财务情况（单位：万元）</div>
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="t_css">
	        <tr class="t_tr">
	          <td align="left" width="20%">指标</td>
	          <td align="center" width="20%">${year-3 }年（万元）</td>
	          <td align="center" width="20%">${year-2 }年（万元）</td>
	          <td align="center" width="20%">${year-1 }年（万元）</td>
       	</tr>
      	<!-- 企业财务 -->
      	<c:set var="finance_items" value="&nbsp;&nbsp;营业收入,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;主营业务收入,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;新增产品销售收入,&nbsp;&nbsp;工业总产值,&nbsp;&nbsp;增加值,&nbsp;&nbsp;出口总额(万美元),&nbsp;&nbsp;主营业务利润,&nbsp;&nbsp;净利润,&nbsp;&nbsp;实际上缴税费总额,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中按税种分：,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.增值税,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.营业税,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.企业所得税,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.个人所得税,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5.其他税,&nbsp;&nbsp;年末资产总额,&nbsp;&nbsp;年末固定资产净值,&nbsp;&nbsp;年末负债总额,&nbsp;&nbsp;总现金流量净额,&nbsp;&nbsp;经营活动现金流量净额" scope="page"></c:set>
      <c:if test="${fn:substring(nature_value,0,1)=='A' }">
       	<tr class="li_1" id="finance_enterprise" >
        	<td style="padding:0px">
        		<c:forEach items="${fn:split(finance_items, ',') }" var="item" varStatus="sta">
        			<div class="td_item" <c:if test="${sta.index%2!=0 }">style="background:#f1f1f1;"</c:if>>${item }</div>
        		</c:forEach>
        	</td>
        	<c:set value="1" var="index" scope="page" />
			<x:forEach select="$xmlData/data/organization/finances/finance" var="finance" varStatus="finSta">
			<c:if test="${finSta.index>0 }">
			<c:set var="finance_type"><x:out select="$finance/@type" /></c:set>
			<c:if test='${finance_type=="企业财务" }'>
				<c:if test="${index==1||index==2||index==4 }">
	        	<td style="border-left: 1px solid #FFF;">
	        		<c:choose>
	        			<c:when test="${index==1 }"><input type="hidden" name="organization/finances/finance[${index }]@year" value="${year-3 }" /></c:when>
	        			<c:when test="${index==2 }"><input type="hidden" name="organization/finances/finance[${index }]@year" value="${year-2 }" /></c:when>
	        			<c:when test="${index==4 }"><input type="hidden" name="organization/finances/finance[${index }]@year" value="${year-1 }" /></c:when>
	        		</c:choose>
        			<input type="hidden" name="organization/finances/finance[${index }]@sequence_no" value="${index+1 }" />
        			<input type="hidden" name="organization/finances/finance[${index }]@type" value="企业财务" />
        			<div class="td_item" align="center"><span   name="organization/finances/finance[${index }]/income"><x:out select="$finance/income" /></span></div>
        			<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/income_main" ><x:out select="$finance/income_main" /></span></div>
        			<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/income_sale" ><x:out select="$finance/income_sale" /></span></div>
        			<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/output" ><x:out select="$finance/output" /></span></div>
        			<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/added" ><x:out select="$finance/added" /></span></div>
	        		<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/export" ><x:out select="$finance/export" /></span></div>
	        		<div class="td_item" align="center"><span name="organization/finances/finance[${index }]/proft_main" ><x:out select="$finance/proft_main" /></span></div>
	        		<div class="td_item" align="center"><span   name="organization/finances/finance[${index }]/proft" ><x:out select="$finance/proft" /></span></div>
	        		<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/fax" ><x:out select="$finance/fax" /></span></div>
	        		<div class="td_item" align="center">&nbsp;</div>
	        		<div class="td_item" align="center"><span   name="organization/finances/finance[${index }]/fax_added" ><x:out select="$finance/fax_added" /></span></div>
	        		<div class="td_item" align="center"><span   name="organization/finances/finance[${index }]/fax_bussiness" ><x:out select="$finance/fax_bussiness" /></span></div>
	        		<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/fax_income" ><x:out select="$finance/fax_income" /></span></div>
	        		<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/fax_personal" ><x:out select="$finance/fax_personal" /></span></div>
	        		<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/fax_other" ><x:out select="$finance/fax_other" /></span></div>
	        		
	        		<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/assets" ><x:out select="$finance/assets" /></span></div>
	        		<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/assets_fixed" ><x:out select="$finance/assets_fixed" /></span></div>
	        		<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/liabilities" ><x:out select="$finance/liabilities" /></span></div>
	        		<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/caseflow" ><x:out select="$finance/caseflow" /></span></div>
	        		<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/caseflow_active" ><x:out select="$finance/caseflow_active" /></span></div>
	        	</td>
        		</c:if>
        		
        		<c:set value="${index+1 }" var="index" scope="page" />
        	</c:if>
        	</c:if>
        	</x:forEach>
        </tr>
        <tr>
        <td><span class="color_red">*</span>研发经费支出总额</td>
        <td><div class="td_item"><input  name="researchs/research_funds1" value="<x:out select="$xmlData/data/researchs/research_funds1" />"  type="text" label="${year-3 }研发经费支出总额" class="hn_iuput_kuang2 required" style="text-align:right" onfocus="InitInput.setNumber(this,7,4,2)"/></div></td>
        <td><div class="td_item"><input  name="researchs/research_funds2" value="<x:out select="$xmlData/data/researchs/research_funds2" />"  type="text" label="${year-2 }研发经费支出总额"  class="hn_iuput_kuang2 required" style="text-align:right" onfocus="InitInput.setNumber(this,7,4,2)"/></div></td>
        <td><div class="td_item"><input  name="researchs/research_funds3" value="<x:out select="$xmlData/data/researchs/research_funds3" />"  type="text"  label="${year-1 }研发经费支出总额"  class="hn_iuput_kuang2 required" style="text-align:right" onfocus="InitInput.setNumber(this,7,4,2)"/></div></td>
        </tr>
        </c:if>
      	<!-- 事业财务 -->
      	<c:set var="finance_items" value="&nbsp;&nbsp;年度总收入,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(一)生产经营收入,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(二)科技活动收入,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(三)其他收入,&nbsp;&nbsp;年度总收入增长率(%),&nbsp;&nbsp;年度总支出,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.生产经营支出,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.科技活动支出,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.其他支出,&nbsp;&nbsp;年末资产总额,&nbsp;&nbsp;年末固定资产原值,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.年末科研用房原值,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.年末科研设备原值,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.其他固定资产原值,&nbsp;&nbsp;固定资产增长率(%),&nbsp;&nbsp;科研设备资产增长率(%),&nbsp;&nbsp;年末负债总额" scope="page"></c:set>
      
        <tr class="li_1" id="finance_career" <c:if test="${fn:substring(nature_value,0,1)=='A' }">style="display:none"</c:if>>
        	<td style="padding:0px">
        		<c:forEach items="${fn:split(finance_items, ',') }" var="item" varStatus="sta">
        			<div class="td_item" <c:if test="${sta.index%2!=0 }">style="background:#f1f1f1;"</c:if>>${item }</div>
        		</c:forEach>
        	</td>
        	<c:set value="1" var="index" scope="page" />
			<x:forEach select="$xmlData/data/organization/finances/finance" var="finance">
			<c:set var="finance_type"><x:out select="$finance/@type" /></c:set>
			<c:if test="${finance_type=='事业财务' }">
				<c:if test="${index==1||index==2||index==4 }">
	        	<td style="border-left: 1px solid #FFF;">
	        		<c:choose>
	        			<c:when test="${index==1 }"><input type="hidden" name="organization/finances/finance[${index }]@year" value="${year-3 }" /></c:when>
	        			<c:when test="${index==2 }"><input type="hidden" name="organization/finances/finance[${index }]@year" value="${year-2 }" /></c:when>
	        			<c:when test="${index==4 }"><input type="hidden" name="organization/finances/finance[${index }]@year" value="${year-1 }" /></c:when>
	        		</c:choose>
        			<input type="hidden" name="organization/finances/finance[${index }]@sequence_no" value="${index+1 }" />
        			<input type="hidden" name="organization/finances/finance[${index }]@type" value="事业财务" />
        			<div class="td_item" align="center" align="center"><span   name="organization/finances/finance[${index }]/income" ><x:out select="$finance/income" /></span></div>
        			<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/income_product" ><x:out select="$finance/income_product" /></span></div>
        			<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/income_tech" ><x:out select="$finance/income_tech" /></span></div>
        			<div class="td_item" align="center"><span name="organization/finances/finance[${index }]/income_other" ><x:out select="$finance/income_other" /></span></div>
        			<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/income_rate" ><x:out select="$finance/income_rate" /></span></div>
        			<div class="td_item" align="center"><span   name="organization/finances/finance[${index }]/outcome" ><x:out select="$finance/outcome" /></span></div>
	        		<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/outcome_product" ><x:out select="$finance/outcome_product" /></span></div>
	        		<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/outcome_tech" ><x:out select="$finance/outcome_tech" /></span></div>
	        		<div class="td_item" align="center"><span name="organization/finances/finance[${index }]/outcome_other" ><x:out select="$finance/outcome_other" /></span></div>
	        		<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/assets" ><x:out select="$finance/assets" /></span></div>
	        		<div class="td_item" align="center"><span   name="organization/finances/finance[${index }]/assets_fixed" ><x:out select="$finance/assets_fixed" /></span></div>
	        		<div class="td_item" align="center"><span   name="organization/finances/finance[${index }]/assets_fixed_room" ><x:out select="$finance/assets_fixed_room" /></span></div>
	        		<div class="td_item" align="center"><span  name="organization/finances/finance[${index }]/assets_fixed_equiment" ><x:out select="$finance/assets_fixed_equiment" /></span></div>
	        		<div class="td_item" align="center"><span   name="organization/finances/finance[${index }]/assets_fixed_other" ><x:out select="$finance/assets_fixed_other" /></span></div>
	        		<div class="td_item" align="center"><span   name="organization/finances/finance[${index }]/assets_fixed_rate"><x:out select="$finance/assets_fixed_rate" /></span></div>
	        		<div class="td_item" align="center"><span   name="organization/finances/finance[${index }]/assets_fixed_equiment_rate" ><x:out select="$finance/assets_fixed_equiment_rate" /></span></div>
	        		<div class="td_item" align="center"><span   name="organization/finances/finance[${index }]/liabilities" ><x:out select="$finance/liabilities" /></span></div>
	        	</td>
        		</c:if>
				
        		<c:set value="${index+1 }" var="index" scope="page" />
        	</c:if>
			</x:forEach>
			
	        </tr>
		</table>
		
<div class="t_bar">开户信息</div>
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="t_css">
<tr class="li_1">
          	<c:set var="bank_name"><x:out select="$xmlData/data/org_basic_info/bank_name" /></c:set>
            <td align="right">开户银行：</td>
            <td align="left" colspan="1"><span name="org_basic_info/bank_name">${bank_name }</span></td>
          	<c:set var="credit_level"><x:out select="$xmlData/data/org_basic_info/credit_level" /></c:set>
            <td align="right"><span class="color_red">*</span>银行信用等级：</td>
            <td align="left" colspan="1"><span name="org_basic_info/credit_level">${credit_level }</span></td>
          	
          </tr>
          <tr class="li_2">
            <c:set var="bank_orgname"><x:out select="$xmlData/data/org_basic_info/bank_orgname" /></c:set>
            <td align="right">开户户名：</td>
            <td align="left" colspan="1"><span name="org_basic_info/bank_orgname">${bank_orgname}</span></td>
          	<c:set var="bank_account"><x:out select="$xmlData/data/org_basic_info/bank_account" /></c:set>
            <td align="right">银行账号：</td>
            <td align="left" colspan="1"><span name="org_basic_info/bank_account">${bank_account }</span></td>
          </tr>
</table>

